package com.linciping.useges.plugin.bean;

import com.intellij.psi.PsiFile;

import java.util.Objects;

public class File2R {

    private PsiFile file;
    private String resName;
    private String constantR;

    public File2R(PsiFile file, String resName, String constantR) {
        this.file = file;
        this.resName = resName;
        this.constantR = constantR;
    }

    public PsiFile getFile() {
        return file;
    }

    public String getConstantR() {
        return constantR;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        File2R file2R = (File2R) o;
        return Objects.equals(file, file2R.file) && Objects.equals(constantR, file2R.constantR);
    }

    @Override
    public int hashCode() {
        return Objects.hash(file, constantR);
    }
}
